package com.cloud.mall.oms.service;

import com.cloud.mall.base.BaseResponse;
import com.cloud.mall.oms.dto.OrderParam;
import com.cloud.mall.oms.dto.confirm.ConfirmOrderResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "订单管理")
@RequestMapping("/order")
public interface OmsPortalOrderService {
/*
    @ApiOperation("根据购物车信息生成确认单信息")
    @PostMapping("/generateConfirmOrder")
    BaseResponse<ConfirmOrderResult> generateConfirmOrder();

    @ApiOperation("根据购物车信息生成订单")
    @PostMapping("/generateOrder")
    BaseResponse generateOrder(@RequestBody OrderParam orderParam);

    @ApiOperation("支付成功的回调")
    @PostMapping("/paySuccess")
    BaseResponse paySuccess(@RequestParam Long orderId);

    @ApiOperation("自动取消超时订单")
    @PostMapping("/cancelTimeOutOrder")
    BaseResponse cancelTimeOutOrder();

    @ApiOperation("取消单个超时订单")
    @PostMapping("/cancelOrder")
    BaseResponse cancelOrder(Long orderId);*/
}
